package com.zsk.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("版本控制")
public class ShopAppVersion implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;
    @Size(max = 15, message = "当前版本名称限制15字")
    @ApiModelProperty(name = "versionName", value = "版本名称", dataType = "String")
    private String versionName;
    @ApiModelProperty(name = "versionPlatform", value = "客户端类型", dataType = "Integer")
    private Integer versionPlatform;
    @Size(max = 20, message = "当前版本号限制20字")
    @ApiModelProperty(name = "versionNumber", value = "版本号", dataType = "String")
    private String versionNumber;
    @ApiModelProperty(name = "versionCode", value = "版本code", dataType = "Integer")
    private Long versionCode;
    @ApiModelProperty(name = "forcedUpgrade", value = "是否强制更新", dataType = "Boolean")
    private Boolean forcedUpgrade;
    @ApiModelProperty(name = "url", value = "链接地址", dataType = "String")
    private String url;
    @ApiModelProperty(name = "tip", value = "描述", dataType = "String")
    private String tip;
    @ApiModelProperty(name = "isPublish", value = "是否发布", dataType = "Boolean")
    private Boolean isPublish;
    @ApiModelProperty(name = "isDeleted", value = "是否删除", dataType = "Boolean")
    private Boolean isDeleted;
    @ApiModelProperty(name = "createTime", value = "创建时间", dataType = "Date")
    private Date createTime;
    @ApiModelProperty(name = "updateTime", value = "修改时间", dataType = "Date")
    private Date updateTime;
    @ApiModelProperty(name = "createUser", value = "创建人", dataType = "Long")
    private Long createUser;
    @ApiModelProperty(name = "updateUser", value = "修改人", dataType = "Long")
    private Long updateUser;

    private static final long serialVersionUID = 1L;

}